package com.project.bean.DisasterPrevention;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.bean.ExpertConsultation.ConsultBean;
import com.project.bean.ExpertConsultation.ExpertBean;

import java.time.LocalDate;
import java.util.List;

//事件记录实体
@TableName("event_info")
public class EventBean {

    @TableId(value = "event_id",type = IdType.AUTO)
    private Integer eventId;	//事件编号
    @TableField("event_name")
    private String eventName;	//事件名称
    @TableField("event_day")
    private LocalDate eventDay;	//事件日期
    @TableField("event_img")
    private String eventImg;	//灾情图片
    @TableField("event_stage")
    private String eventStage;	//灾情阶段
    @TableField("event_describe")
    private String eventDescribe;	//灾情描述
    @TableField("event_find")
    private String eventFind;	//发现途径

    @TableField("event_place")
    private String regionName;//发生位置

    @TableField("event_class")
    private String className;//小班负责区域
    @TableField("event_type")
    private String eventType;	//灾害类型

    @TableField("event_area")
    private String eventArea; //影响面积

    @TableField("event_advice")
    private String eventAdvice = "暂无建议";//专家建议

    @TableField("event_lose")
    private String eventLose;	//初步损失
    @TableField("event_precept")
    private String eventPrecept;	//防治方案

    @TableField(exist = false)

    private List <ConsultBean> consultBeanList;//会商实体


    @TableField(exist = false)
    private RegionBean regionBean;


    public EventBean() {
    }

    public EventBean(String eventName, LocalDate eventDay, String eventImg, String eventStage, String eventDescribe, String eventFind, String regionName, String className, String eventType, String eventArea, String eventLose, String eventPrecept) {
        this.eventName = eventName;
        this.eventDay = eventDay;
        this.eventImg = eventImg;
        this.eventStage = eventStage;
        this.eventDescribe = eventDescribe;
        this.eventFind = eventFind;
        this.regionName = regionName;
        this.className = className;
        this.eventType = eventType;
        this.eventArea = eventArea;
        this.eventLose = eventLose;
        this.eventPrecept = eventPrecept;
    }



    public Integer getEventId() {
        return eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public LocalDate getEventDay() {
        return eventDay;
    }

    public void setEventDay(LocalDate eventDay) {
        this.eventDay = eventDay;
    }

    public String getEventImg() {
        return eventImg;
    }

    public void setEventImg(String eventImg) {
        this.eventImg = eventImg;
    }

    public String getEventStage() {
        return eventStage;
    }

    public void setEventStage(String eventStage) {
        this.eventStage = eventStage;
    }

    public String getEventDescribe() {
        return eventDescribe;
    }

    public void setEventDescribe(String eventDescribe) {
        this.eventDescribe = eventDescribe;
    }

    public String getEventFind() {
        return eventFind;
    }

    public void setEventFind(String eventFind) {
        this.eventFind = eventFind;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getEventArea() {
        return eventArea;
    }

    public void setEventArea(String eventArea) {
        this.eventArea = eventArea;
    }

    public String getEventAdvice() {
        return eventAdvice;
    }

    public void setEventAdvice(String eventAdvice) {
        this.eventAdvice = eventAdvice;
    }

    public String getEventLose() {
        return eventLose;
    }

    public void setEventLose(String eventLose) {
        this.eventLose = eventLose;
    }

    public String getEventPrecept() {
        return eventPrecept;
    }

    public void setEventPrecept(String eventPrecept) {
        this.eventPrecept = eventPrecept;
    }

    public List<ConsultBean> getConsultBeanList() {
        return consultBeanList;
    }

    public void setConsultBeanList(List<ConsultBean> consultBeanList) {
        this.consultBeanList = consultBeanList;
    }

    public RegionBean getRegionBean() {
        return regionBean;
    }

    public void setRegionBean(RegionBean regionBean) {
        this.regionBean = regionBean;
    }

    @Override
    public String toString() {
        return "EventBean{" +
                "eventId=" + eventId +
                ", eventName='" + eventName + '\'' +
                ", eventDay=" + eventDay +
                ", eventImg='" + eventImg + '\'' +
                ", eventStage='" + eventStage + '\'' +
                ", eventDescribe='" + eventDescribe + '\'' +
                ", eventFind='" + eventFind + '\'' +
                ", regionName='" + regionName + '\'' +
                ", className='" + className + '\'' +
                ", eventType='" + eventType + '\'' +
                ", eventArea='" + eventArea + '\'' +
                ", eventAdvice='" + eventAdvice + '\'' +
                ", eventLose='" + eventLose + '\'' +
                ", eventPrecept='" + eventPrecept + '\'' +
                ", consultBeanList=" + consultBeanList +
                '}';
    }
}
